#include<stdio.h>

int main(){

   int num,n;
   scanf("%d%d",&num,&n);
   num=num & (1<<n);
   if(num){
       printf("yes");
   }
   else{
       printf("no\n");
   }

    return 0;
}